//
//  ActivityLabel.m
//  UI_元旦豆瓣
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 31付冬梅. All rights reserved.
//

#import "ActivityLabel.h"

@implementation ActivityLabel
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatLabel];
    }
    return self;
}
- (void)creatLabel {
    UIImageView *bigView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 20, 340, 220)];
    [self addSubview:bigView];
    
    self.activityImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 60, 100, 150)];
    [bigView addSubview:_activityImage];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 300, 50)];
    [bigView addSubview:_titleLabel];
    
    UIImageView *timeView = [[UIImageView alloc] initWithFrame:CGRectMake(110, 60, 30, 30)];
    [bigView addSubview:timeView];
    self.timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(140, 60, 200, 30)];
    [bigView addSubview:_timeLabel];
    
    UIImageView *typeView = [[UIImageView alloc] initWithFrame:CGRectMake(110, 110, 30, 30)];
    [bigView addSubview:typeView];
    self.typeLabel =[[UILabel alloc] initWithFrame:CGRectMake(140, 110, 200, 30)];
    [bigView addSubview:_typeLabel];
    
    UIImageView *addressView = [[UIImageView alloc] initWithFrame:CGRectMake(110, 150, 30, 30)];
    [bigView addSubview:addressView];
    self.addressLabel = [[UILabel alloc] initWithFrame:CGRectMake(140, 150, 200, 60)];
    _addressLabel.numberOfLines = 3;
    [bigView addSubview:_addressLabel];
    
    
    
    
}








/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
